#!/bin/bash
# This script is a replacement of optirun64 alias
# Testing to fix problems when launching from kmenu

source /etc/bumblebee/bumblebee

export ${VGL_READBACK}
export LD_PRELOAD="/usr/lib/opengl/nvidia/lib/libGL.so"

vglrun -c ${VGL_COMPRESS} -d ${VGL_DISPLAY} -ld /usr/lib -- "$@"
